import request from '../utils/request.js'

export function login(data) {
  return request({
    url: '/api/user/login',
    method: 'POST',
    data
  })
}

export function register(data) {
  return request({
    url: '/api/user/register',
    method: 'POST',
    data
  })
}

export function getUserInfo() {
  return request({
    url: '/api/user/profile',
    method: 'GET'
  })
}
